package net.wangds.dymodel.query;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import net.wangds.dymodel.meta.entity.DyModelDefEntity;
import net.wangds.dymodel.meta.entity.DyModelPropDefEntity;

import java.util.List;

/**
 * Query.
 * <p></p>
 *
 * @author 王东石 2021/2/16 2:23.
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Query {

    private String modelId;

    private DyModelDefEntity model;

    private List<String> displayColumnIds;

    private List<DyModelPropDefEntity> displayColumns;

    private Condition condition;

    private List<OrderBy> orderBy;

    private int pageIndex;

    private int pageSize;

    private Class modelClass;

}
